package src.test.java.com.example.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 工单-组装bom工序表
 * </p>
 *
 * @author hej
 * @since 2022-11-09
 */
@TableName("mes_wo_assy_bom")
@ApiModel(value = "WoAssyBom对象", description = "工单-组装bom工序表")
public class WoAssyBom implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("工单表id：mes_work_order")
    private Integer woId;

    @ApiModelProperty("物料表id：")
    private Integer materialId;

    @ApiModelProperty("位置")
    private String place;

    @ApiModelProperty("组装顺序")
    private Integer seq;

    @ApiModelProperty("基本用量")
    private BigDecimal basicUsage;

    @ApiModelProperty("用量单位")
    private String basicUsageUnit;

    @ApiModelProperty("是否替代")
    private Integer checkReplace;

    @ApiModelProperty("已使用量")
    private BigDecimal hasUsage;

    @ApiModelProperty("创建时间")
    private Long createdDt;

    @ApiModelProperty("创建人code")
    private String creator;

    @ApiModelProperty("创建人id")
    private Integer creatorId;

    @ApiModelProperty("最后一次编辑时间")
    private Long lastEditedDt;

    @ApiModelProperty("最后一次编辑人code")
    private String lastEditor;

    @ApiModelProperty("最后一次编辑人id")
    private Integer lastEditorId;

    private String orgCode;

    @ApiModelProperty("是否删除")
    private Boolean isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWoId() {
        return woId;
    }

    public void setWoId(Integer woId) {
        this.woId = woId;
    }

    public Integer getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Integer materialId) {
        this.materialId = materialId;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public BigDecimal getBasicUsage() {
        return basicUsage;
    }

    public void setBasicUsage(BigDecimal basicUsage) {
        this.basicUsage = basicUsage;
    }

    public String getBasicUsageUnit() {
        return basicUsageUnit;
    }

    public void setBasicUsageUnit(String basicUsageUnit) {
        this.basicUsageUnit = basicUsageUnit;
    }

    public Integer getCheckReplace() {
        return checkReplace;
    }

    public void setCheckReplace(Integer checkReplace) {
        this.checkReplace = checkReplace;
    }

    public BigDecimal getHasUsage() {
        return hasUsage;
    }

    public void setHasUsage(BigDecimal hasUsage) {
        this.hasUsage = hasUsage;
    }

    public Long getCreatedDt() {
        return createdDt;
    }

    public void setCreatedDt(Long createdDt) {
        this.createdDt = createdDt;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Integer getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Integer creatorId) {
        this.creatorId = creatorId;
    }

    public Long getLastEditedDt() {
        return lastEditedDt;
    }

    public void setLastEditedDt(Long lastEditedDt) {
        this.lastEditedDt = lastEditedDt;
    }

    public String getLastEditor() {
        return lastEditor;
    }

    public void setLastEditor(String lastEditor) {
        this.lastEditor = lastEditor;
    }

    public Integer getLastEditorId() {
        return lastEditorId;
    }

    public void setLastEditorId(Integer lastEditorId) {
        this.lastEditorId = lastEditorId;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "WoAssyBom{" +
        "id=" + id +
        ", woId=" + woId +
        ", materialId=" + materialId +
        ", place=" + place +
        ", seq=" + seq +
        ", basicUsage=" + basicUsage +
        ", basicUsageUnit=" + basicUsageUnit +
        ", checkReplace=" + checkReplace +
        ", hasUsage=" + hasUsage +
        ", createdDt=" + createdDt +
        ", creator=" + creator +
        ", creatorId=" + creatorId +
        ", lastEditedDt=" + lastEditedDt +
        ", lastEditor=" + lastEditor +
        ", lastEditorId=" + lastEditorId +
        ", orgCode=" + orgCode +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
